package com.cskaoyan.chapter0501.chapter050108;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author:WalterChan
 * @Decription:PersonTest
 * @Date Created in 2024-05-21-20:50
 */
public class PersonTest {
    public static void main(String[] args) {
        List<Person> personList = new ArrayList<>();
        personList.add(new Student("张三"));
        personList.add(new Employee("李四"));

        for (Person person : personList) {
            System.out.println(person.getName()+person.getDescription());
        }
    }
}
